<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jQuery.min.js"></script>
</head>

<body>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <button>点我</button>
    <script>
        $(function () {
            $("button").click(function () {
                //写在一行 我的背景色变成蓝色 我兄弟的不变色
                $(this).css("background", "skyblue").siblings("button").css("background", "");
            })
        })
    </script>


</body>

</html>